<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/card.css?v=20131217" media="all" />
<link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/css/datepicker.css?v=20131218" media="all">

<link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/employee_manage.css?_vr_=1389175823610" />

<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/datepicker-zh-cn.js?v=20131217"></script>
<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alert.js"></script>
<title>{$title}</title>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
	name="viewport">
<meta name="format-detection" content="telephone=no">
</head>
<body id="carduser" ondragstart="return false;" onselectstart="return false;">
	<section class="body">
		<div class="qiandaobanner">
			<img src="{$Think.config.RESOURCEURL}wx_assets/images/employee_manage/employee_manage.jpg">
		</div>
		<div class="cardexplain">
			<!--个人头像，昵称等-->
			<!--  <ul class="round" style="display: none">
            <li class="dandanb"><a href="hotelsorder.htm"><span class="none">
                <img src="index/images/logo100x100.jpg">
                <h2></h2>
                <p></p>
            </span></a></li>
        </ul>-->
			<ul class="round">
				<form action="javascript:;" method="post">
					<li class="title mb"><span class="none">{$title}</span></li>
				<li class="nob">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
						<tbody>
							<tr>
								<th>{$searchTitle}
								</th>
								<td>
									<input name="searchCondition" type="tel" class="px" id="searchCondition" 
									value="{$fullName}" placeholder="{$searchTip}">
								</td>
							</tr>
						</tbody>
					</table>
				</li>
				
				
				</form>
			</ul>
			<div class="footReturn">
				<input type="button" id="showcard" class="submit" value="查 询" />
				<div class="window" id="windowcenter">
					<div id="title" class="wtitle">
						查询成功<span class="close" id="alertclose"></span>
					</div>
					<div class="content">
						<div id="txt"></div>
					</div>
				</div>
			</div>
			<div style="height:20px"></div>
			
		</div>
<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);

function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				retval["euid"] = obj.euid;
				retval["euname"] = obj.euname;
				retval["type"] = obj.type;
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			}
		} 
		return retval; 
}
</script>
<script type="text/javascript">
    $(document).ready(function () {

        $("#showcard").click(function () {
        	
        	var baseUrl =  '{$Think.config.SERVER_HOST}';
        	var urlString = baseUrl + 'call.json?customerId={$customerId}';
        	var searchCondition = $("#searchCondition").val();
           	if(searchCondition == '') {
           		var title = '{$searchTitle}';
           		if(title != ''){
           			alert(title+'不能为空');
           		}else{
           			alert('查询条件不能为空');
           		}
        		
        		return;
           	}
           	
           	$("#showcard").val("正在查询...");
			$("#showcard").attr("disabled", true);
			var euid = hrefParamsArray["euid"];
			var euname = hrefParamsArray["euname"];
			var type = hrefParamsArray["type"];
			
			
			window.location.href = 'call.html?customerId={$customerId}&module=employeeManage&method=search&params={"euid":"' + euid + '","euname":"' + euname + '","type":"' +
        	type + '","search":"' + searchCondition + '"}';
	
			/*
        	$.ajax({url : urlString,
        				dataType : "json",
        				type : "post",
        				timeout:15000,
        				data : {
        					'module': 'employeeManage',
        			        'method' : 'search',
        			        'params' : '{"euid":"' + euid + '","euname":"' + euname + '","type":"' +
        			        	type + '","search":"' + searchCondition + '"}',
        				},
        				success : function(data) {
        					if (data.code != 0) {
        						alert(data.msg);
        						$("#showcard").val("查 询");
        						$("#showcard").attr("disabled", false);
        						return;
        					}
        					window.location.href = 'call.html?userName=' + hrefParamsArray['userName'] + '&customerId='
        						+ hrefParamsArray['customerId'] + '&module=member&method=get&params={"cid":'+  cid +'}';
        				},
						error: function(jqXHR, textStatus, errorThrown){
						alert('发送超时,可能存在网络异常,检查后请重试...');
							$("#showcard").val("查  询");
							$("#showcard").attr("disabled", false);
							
				     }
        		});
        	
        	*/
        });
    });
</script>
	</section>
</body>
<script type="text/javascript">var new_nav = new function() {};var x;var old_navigator = window.navigator;for (x in navigator) {if (typeof navigator[x] == 'function') {eval("new_nav." + x + " = function() { return old_navigator." + x + "();};");} else {eval("new_nav." + x + " = navigator." + x + ";");}}new_nav.userAgent = "Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329 MicroMessenger/5.0.3";new_nav.vendor = "";window.navigator = new_nav;</script>
</html>